package com.qf.service.impl;

import com.qf.dao.CatalogDao;
import com.qf.dao.impl.CatalogDaoImpl;
import com.qf.pojo.Catalog;
import com.qf.service.CatalogService;

import java.util.List;

/**
 * Created by Administrator on 2021/10/19.
 */
public class CatalogServiceImpl implements CatalogService{
    private CatalogDao catalogDao=new CatalogDaoImpl();


    /*@Override
    public List<Catalog> selectCatalogByLevel(int level, int param) {
        return catalogDao.selectAllCatalog(level,param);
    }
*/


    @Override
    public List<Catalog> selectCatalogByLevel1() {
        return catalogDao.selectAllCatalog(1,-1);
    }

    @Override
    public List<Catalog> selectCatalogByLevel2( int line) {
        return catalogDao.selectAllCatalog(2,line);
    }

    @Override
    public List<Catalog> selectCatalogByLevel3( int parent) {
        return catalogDao.selectAllCatalog(3,parent);
    }
}
